<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of vMain
 *
 * @author Rolland
 */
class vMain {
    public function _contruct(){
        echo "lol";
    }
    
    public function header($entrepot){
        $leMenu = new vMenu();
        echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
        echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">';
        echo '<head>';
        echo '<title>Titre de la page</title>';
        echo '<meta name="keywords" lang="fr" content="stock,transaction" />';
        echo '<meta name="description" content="Gestion de stock" />';
        echo '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15"/>';
        echo '<meta http-equiv="Content-Language" content="fr" />';
        echo '<link href="style.css" rel="stylesheet" type="text/css" />';
        echo '</head>';
        echo '<body>';
        echo '<div id="conteneur">';
        $leMenu->afficher($entrepot);
        echo '<div id="corps">';
        
    }
    
    public function afficher($lesEntrepot){
        $this->header($lesEntrepot);
        echo '<h1>Bienvenue sur le site.</h1>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla imperdiet volutpat commodo. Curabitur 
            rutrum, erat et tincidunt sollicitudin, massa turpis porta enim, id faucibus sapien arcu eu purus. In ante 
            lacus, porta at lacinia eu, malesuada sed ipsum. Quisque quis arcu in felis pellentesque semper. In hac 
            habitasse platea dictumst. Aliquam tempus imperdiet auctor. Vestibulum varius rutrum condimentum. Aenean 
            elit purus, luctus ut imperdiet eget, ornare in lacus. Proin at orci a est tincidunt auctor in vel odio. 
            Donec non porttitor arcu. Quisque rhoncus felis vitae magna dignissim id fermentum felis eleifend. 
            Vestibulum laoreet, enim lacinia vulputate luctus, tellus metus auctor orci, ut facilisis ipsum dui 
            eleifend ipsum. Pellentesque sodales dui ac eros aliquam in congue sem mollis. </p>';
        $this->footer();
    }
    
    public function footer(){
        echo '</div>';
        echo '</div>';
        echo '</body>';
        echo '</html>';
    }
}

?>
